<?php
namespace api\home\controller;

use think\Db;
use think\Validate;
use cmf\controller\RestBaseController;
use app\common\model\TemplateCategoryModel;

class TemplateCategoryController extends RestBaseController
{
    //模板分类列表
	public function index(){
		$data = TemplateCategoryModel::all(['level'=>1]);
		$this->success('',$data->visible(['name','category_id'])->toArray());
	}

	

}
